<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>后台管理中心</title>

  <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
  
  <script src="__ADMIN__/layui/layui.js?v=1"></script>
    
  <script type="text/javascript" src="https://cdn.bootcss.com/layer/2.3/layer.js"></script>
  <script type="text/javascript" src="/static/admin/js/admin.js"></script>

  <link rel="stylesheet" href="__ADMIN__/layui/css/layui.css?v=2">
  <link rel="stylesheet" href="__ADMIN__/css/admin.css?v=1.4">
 
</head>
<body class="layui-layout-body">

<div class="layui-layout layui-layout-admin">
  <div class="layui-header">

    <div></div>
    <div class="layui-logo">后台管理中心</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left layui-hide-xs">
      <li class="layui-nav-item"><a href="/{:config('site.adminpath')}">功能管理</a></li>
      <li class="layui-nav-item "><a href="/index.php" target="_blank">网站首页</a></li>
    </ul>
    <ul class="layui-nav layui-layout-right ">
      <li class="layui-nav-item layui-hide-xs">
        <a href="javascript:;">
          <img src="{$Think.session.admin.avatar}" class="layui-nav-img">
          {$Think.session.admin.nickname}
        </a>
      </li>
      <li class="layui-nav-item"><a href="{:Url('login/loginout')}">退出</a></li>
    </ul>
  </div>


  <div class="layui-side layui-bg-black left-menu">
    <div class="layui-side-scroll" >
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->

      {include file='index/menu' /}
   
    </div>
  </div>
  
  <div class="layui-body layui-body-iframe">
   <!-- 内容主体区域 -->
  <div id="main">
   
      <iframe src="{:url('index/ecscharts')}" class="base-iframe" id='iframe' name="iframe"></iframe>
       
  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    <a href="https://gitee.com/32684028888/MaQuecms" target="_blank" >© 麻雀-通用内容管理系统</a>
  </div>
</div> 

<script>
//左边菜单栏目代码区域
layui.use('element', function(){
  let element = layui.element;
  /*element.on('nav(menu)', function(elem){
    let href = elem.context.href;
    if(href != 'javascript:;' || href != '' || typeof(href) == "undefined"){
      
    }
  });*/
});

function ToLink(url){
  $("iframe").attr('src',url);
}
</script>

</body>
</html>